﻿package src.utils {

	import flash.events.*;
	import flash.net.*;
	import flash.system.*;

	public class Debug {
		//Debug output, kevin 2009
		public static function show(str:Object = null):void {
			var lc:LocalConnection = new LocalConnection();
			lc.addEventListener(StatusEvent.STATUS, function(e:Event):void{});
			var s:String = "("+ Math.round(System.totalMemory/1000)/1000 +"M) "+str.toString();
			trace(s);
			lc.send("_debug_lc", "Trace", s);
		}
		
	}
	
}
